import request from '@/utils/request'

/*
 * 教具管理
 */


// 查询班级教具数量tools_position/index
export function tools_position_index(data) {
  return request({
    url: 'tools_position/index',
    method: 'GET',
    params: data
  })
}

// 申请列表
export function tools_return_index(params) {
  return request({
    url: 'tools_return/index',
    method: 'GET',
    params
  })
}

// 申请入库
export function tools_return_add(data) {
  return request({
    url: 'tools_return/add',
    method: 'POST',
    data: data
  })
}

// 通过申请 apply_id
export function tools_return_distribution(data) {
  return request({
    url: 'tools_return/distribution',
    method: 'POST',
    data: data
  })
}

// 驳回申请 id
export function tools_return_reject(data) {
  return request({
    url: 'tools_return/reject',
    method: 'POST',
    data: data
  })
}

// 取消删除 delete
export function tools_return_delete(data) {
  return request({
    url: 'tools_return/delete',
    method: 'POST',
    data: data
  })
}
